import matplotlib.pyplot as plt
import numpy as np 

x = np.linspace(-5, 5, 100) 
y1 = np.sin(x) 
y2 = np.cos(x) 
plt.figure(num=3, figsize=(8, 5)) 
plt.plot(x, y1) 
plt.plot(x, y2, color='blue', linewidth=5.0, linestyle='--') 
plt.xlim((-5, 5)) 
plt.ylim((-2, 2)) 
plt.xlabel('x axis') 
plt.ylabel('y axis') 
my_x_ticks = np.arange(-5, 5, 1.5) 
my_y_ticks = np.arange(-2, 2, 1.5) 
plt.xticks(my_x_ticks) 
plt.yticks(my_y_ticks) 
plt.show() 

